PROJECT(trayiconnotificator)
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR}
					${CMAKE_SOURCE_DIR}/libwm/notification
					${CMAKE_BINARY_DIR}/plugins/notificators/trayiconnotificator)

SET(trayiconnotificator_sources
	trayiconnotificator.cpp
	trayiconnotificatorconfig.cpp)

SET(trayiconnotificator_headers
	trayiconnotificator.h
	trayiconnotificatorconfig.h)

SET(trayiconnotificator_ui
	trayiconnotificatorconfig.ui)

QT4_WRAP_CPP(trayiconnotificator_moc ${trayiconnotificator_headers})
QT4_WRAP_UI(UI_HEADERS ${trayiconnotificator_ui})

ADD_LIBRARY(trayiconnotificator MODULE  ${UI_HEADERS}  ${trayiconnotificator_sources} ${trayiconnotificator_moc})
TARGET_LINK_LIBRARIES(trayiconnotificator ${QT_LIBRARIES} ${spelling_libs} wm)
SET_TARGET_PROPERTIES(trayiconnotificator PROPERTIES LIBRARY_OUTPUT_DIRECTORY ..)

INSTALL(TARGETS trayiconnotificator LIBRARY DESTINATION ${LIBDIR}/plugins/notificators)

